<?php

namespace Pyaf\GymBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class GrupoMuscularesType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('nombre', 'text')
            ->add('descripcion', 'textarea')
            ->add('habilitado', 'checkbox')
            //->add('rutinas')
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Pyaf\GymBundle\Entity\GrupoMusculares'
        ));
    }

    public function getName()
    {
        return 'pyaf_gymbundle_grupomuscularestype';
    }
}
